<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<link rel="stylesheet" href="../../resources/css/ext-all.css"/>
<script type="text/javascript" src="../../js/comm/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="http://cdn.sencha.io/ext-4.2.0-gpl/ext-all.js"></script>
<script type="text/javascript">
Ext.onReady(function () {
	var path = "<%=request.getContextPath() %>";
	var store = Ext.create('Ext.data.TreeStore', {
        proxy: {
            type: 'ajax',
            //url: '/js/data/users.json'
            url: path + '/chart/list'
        }
        /* root: {
            id: "roodNode",
            text: "Root",
            expanded: true
        } */
    });

    Ext.create('Ext.tree.Panel', {
        title: '表选择',
        width: 300,
        height: 650,
        store: store,
        rootVisible: false,
        renderTo: 'treeDiv'
    });
});
</script>

<div id="treeDiv"></div>
